/**
 * @Author: Bobby
 * @Date: 2022-02-15 13:14:17
 * @LastEditTime: 2022-03-01 10:18:32
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\baseComs\form\uiSelect.js
 * @CIMC-V2
 */
import { exInput, exSwitch, exRequestData } from '@ve/common/components/extension'

export default {
  VERSION: '20220701',
  type: 'uiTableSelect',
  extension: {
    api: exInput('Api接口', ''),
    method: exInput('Method', ''),
    getDataKey: exInput('获取数据Key', ''),
    requestData: exRequestData('参数', [
      { key: '#LIMIT#', value: 1 },
      { key: '#PAGE_SIZE#', value: 50 },
    ]),
    labelField: exInput('label字段', 'label'),
    valueField: exInput('value字段', 'value'),
    optionConfig: {
      type: 'exTableSelectOptionConfig',
      name: '选项配置',
      value: [],
    },
    multiple: exSwitch('可多选', false),
    defaultValue: exInput('默认值', ''),
  },
}
